package per.zhang.vaccinesys.serverConsumer.service;

import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import per.zhang.vaccinesys.serverConsumer.base.dto.ResultDTO;
import per.zhang.vaccinesys.serverConsumer.base.page.PageList;
import per.zhang.vaccinesys.serverConsumer.dto.request.VaccineRequsetDTO;
import per.zhang.vaccinesys.serverConsumer.dto.respone.VaccineRespondDTO;

@FeignClient("service-provider")
public interface VaccineService {

    static final String POR_URL = "/vaccine";

    /**
     *
     * @param vaccineRequsetDTO
     * @return
     */
    @PostMapping(POR_URL+"/selectByUserId")
    ResultDTO<PageList<VaccineRespondDTO>> selectByUserId(@RequestBody VaccineRequsetDTO vaccineRequsetDTO);
}
